package io.scnb.lesson001.demo5;


import java.beans.ConstructorProperties;

public class CarModel {
    private String name;
    private String desc;

    public CarModel() {

    }

    @ConstructorProperties({"name", "desc"})
    public CarModel(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }


    @Override
    public String toString() {
        return "CarModel{" +
                "name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
